package com.luomu.base.api.service;


import com.luomu.base.api.bo.ChatCompletedCallBackReqBO;
import com.luomu.base.api.bo.Message;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author niuxiangqian
 * @version 1.0
 * @date 2023/3/23 15:14
 **/
public interface CompletedCallBackService {

    /**
     * 成功完成回调用
     */
    @PostMapping("/completed")
    void completed(@RequestBody ChatCompletedCallBackReqBO req);

    /**
     * 失败回调
     */
    @PostMapping("/fail")
    void fail(@RequestBody ChatCompletedCallBackReqBO req);

    /**
     * 清除历史
     */
    @PostMapping("/clearHistory")
    void clearHistory(@RequestBody ChatCompletedCallBackReqBO req);
}
